﻿mainModule.controller("itemListCtrl", ["$scope", "dictionaryItemSvc", "$controller", "notification", function ($scope, apiSvc, $controller, notification) {
    "use strict";
    // instantiate base controller    
    $scope.entityName = "dictionaryItem";
    $scope.autoLoadOnRender = false;
    $controller('BaseListCtrl', { $scope: $scope, apiSvc: apiSvc });

    $scope.$on('itemEditing', function (e, id) {    
        apiSvc.setParent(id);
        $scope.loadList();
    });
}]);




